package com.bit.demo.springbookdemo.mapper;

import com.bit.demo.springbookdemo.model.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {
    /**
     * 根据用户名查询用户信息
     * @param userName 用户名
     * @return 用户信息
     */
    @Select("select * from user_info where user_name = #{userName}")
    UserInfo queryUserByName(String userName);
}
